<?php

namespace LowCode\Traits\Props;

use LowCode\Support\JsExp;

trait HasPlaceholder
{
    /**
     * 文本输入的占位符 placeholder
     * @param string|JsExp $placeholder
     * @return $this
     */
    public function placeholder(string|JsExp $placeholder = ''): static
    {
        return $this->prop("placeholder",$placeholder);
    }
}
